<div class="popup_body">
    <div class="ui_table">
        <form method="post">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td width="80" align="right">联系人：</td>
                    <td>
                        <input type="text" class="text easyui-validatebox" name="contact" readonly
                               value="${(entity.contact)!''}"/>
                    </td>
                </tr>
                <tr>
                    <td width="80" align="right">电话：</td>
                    <td><input type="text" readonly class="text easyui-validatebox" name="tel"
                               value="${(entity.tel)!''}"/></td>
                </tr>
                <tr>
                    <td align="right">省份城市：</td>
                    <td>
                        <div class="select_city">
                        <#assign areaText=''>
                        <#if (entity.provinceName)??>
                            <#assign areaText=entity.provinceName>
                        </#if>
                        <#if (entity.cityName)??>
                            <#assign areaText=areaText + ' - ' + entity.cityName>
                        </#if>
                        <#if (entity.districtName)??>
                            <#assign areaText=areaText + ' - ' + entity.districtName>
                        </#if>
                            <input type="text" class="text easyui-validatebox"
                                   readonly name="areaText" value="${areaText}"/>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="top" style="padding-top:10px;">详细地址：</td>
                    <td><input type="text" class="text easyui-validatebox" name="street" readonly
                               value="${(entity.street)!''}"/></td>
                </tr>
                <tr>
                    <td width="80" align="right">默认地址：</td>
                    <td>
                        <input type="text" class="text easyui-validatebox" name="defaultAddress" readonly
                               <#if 1==entity.defaultAddress>value="是"<#else>value="否"</#if>/>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
<div class="popup_btn">
    <button class="btn btn_border close">关闭</button>
</div>
<script>
    $(function () {
        var pid = '${pid}',
                win = $('#' + pid),
                form = win.find('form');

        win.find('button.close').click(function () {
            win.window('close');
        });
    })
</script>